<?php
	include 'connectDB.php';
?>
	<html>
		</head>
		<link rel = "stylesheet" type = "text/css" href = "styles/mainStyle.css">
			<title></title>
		</head>
		<body>
			<div id='main'>
				<div id='top'>
				</div>
				<div id='buttons'>
				<a href='index.php'><div id="logo">Welcome!</div></a>
					<ul id='ulTop'>
							<a href='index.php'><li class='topButtons'>Home</li></a>
							<a href='login.php'><li class='topButtons'>Login</li></a>
							<a href='register.php'><li class='topButtons'>Register</li></a>
							<a href='contacts.php'><li class='topButtons'>Contacts</li></a>
					</ul>
				</div>
				<div id='searchBoxIndexEdition'>
						<input type='text'id='searchField'>
						<button id='searchButton'>Search</button>
					</div>
				<div id='body'>
					<?php
						if(!isset($_SESSION['logged']))
						{
					?>
						<div id='registerForm'>
						<form method='post' action='reg.php'>
							E-mail:<input type='text' name='email'><br/>
							Password:<input type='password' name='password1'><br/>
							Confirm password:<input type='password' name='password2'><br/>
							First name:<input type='text' name='firstName'><br/>
							Last name:<input type='text' name='lastName'><br/>
							Country :<input type='text' name='country'><br/>
							Address:<input type='text' name='address'><br/>
							Phone number:<input type='text' name='tel'><br/>
							City:<input type='text' name='city'><br/>
							<input type='submit' name='izprateno' value='Register'>
						</form>
						</div>	
						<div id='clear'>
						</div>
						<?php
						}
						?>
				</div>
			</div>
		</body>
	</html>